function [tb_size] = getTBSize(index,mcs)

NUM_BYTES_PER_SUBFRAME_VS_MCS_1MHz4 = [21,29,35,45,56,69,83,97,111,129,129,141,165,185,213,237,245,245,269,293,325,357,381,413,445,477,493,517,605,525,525,525];
NUM_BYTES_PER_SUBFRAME_VS_MCS_3MHz  = [51,69,85,113,141,173,201,237,277,309,309,349,389,437,509,557,597,597,645,701,791,839,919,983,1047,1111,1191,1239,1447,1479,1495,1511];
NUM_BYTES_PER_SUBFRAME_VS_MCS_5MHz  = [91,119,145,189,237,293,341,413,461,533,533,581,653,757,855,951,1015,1015,1063,1207,1303,1415,1511,1668,1788,1860,2004,2100,2417,2449,2481,2513];
NUM_BYTES_PER_SUBFRAME_VS_MCS_10MHz = [185,241,293,381,485,581,685,823,935,1063,1063,1159,1319,1527,1716,1884,2028,2028,2172,2449,2641,2833,3057,3382,3622,3782,4059,4203,4904,4960,4960,5016];
NUM_BYTES_PER_SUBFRAME_VS_MCS_15MHz = [277,365,453,589,717,903,1031,1223,1431,1572,1572,1740,2028,2268,2545,2865,3057,3057,3262,3662,3915,4395,4680,5072,5413,5861,6053,6234,7327,7567,7647,7708];
NUM_BYTES_PER_SUBFRAME_VS_MCS_20MHz = [373,485,613,765,967,1175,1383,1644,1884,2124,2124,2353,2641,3057,3382,3782,4107,4107,4395,4904,5240,5861,6234,6810,7327,7647,8236,8505,10035,10147,10259,10371];

mcs = mcs + 1;

switch(index)
    case 1
        tb_size = NUM_BYTES_PER_SUBFRAME_VS_MCS_1MHz4(mcs); 
    case 2
        tb_size = NUM_BYTES_PER_SUBFRAME_VS_MCS_3MHz(mcs);
    case 3
        tb_size = NUM_BYTES_PER_SUBFRAME_VS_MCS_5MHz(mcs);
    case 4
        tb_size = NUM_BYTES_PER_SUBFRAME_VS_MCS_10MHz(mcs); 
    case 5
        tb_size = NUM_BYTES_PER_SUBFRAME_VS_MCS_15MHz(mcs); 
    case 6
        tb_size = NUM_BYTES_PER_SUBFRAME_VS_MCS_20MHz(mcs);
    otherwise
        fprintf(1,'Error.....\n')
end